<?php

define('CB_ADMIN', TRUE);
require './core/bootstrap.php';
$controller = $request->getControllerName();
if (!$controller) {
    $controller = 'index';
}
$action = $request->getActionName();
if ($module) {
    $module_file = CB_ROOT . 'admin/' . $module . '/' . $controller . '.php';
    if (file_exists($module_file)) {
        if ($module != 'citybao') {
            require CB_CORE . '/modules/' . $module . '/common.inc.php';
        }
        include $module_file;
    } else {
        show_message("非法访问！" . $module . $controller);
    }
} else {
    $tpl->assign('title', '首页');
    $tpl->display('index.tpl');
}